<!DOCTYPE html>
<html>
  <head>
    <title>{$goods.name}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
	<meta charset="utf-8">
    <!-- Bootstrap -->
	<link href="__PUBLIC__/addon/weixin/dist/style/weui.min.css" rel="stylesheet">
	
    <link rel="stylesheet" href="__PUBLIC__/addon/malltemplatehome/CSS/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/addon/malltemplatehome/CSS/reset.css">
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="__PUBLIC__/addon/malltemplatehome/js/jquery-1.11.3.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="__PUBLIC__/addon/malltemplatehome/js/bootstrap.js"></script>
	<!--自己的css样式-->
	<link rel="stylesheet" href="__PUBLIC__/addon/malltemplatehome/CSS/store.css">
	<!--购物车js代码-->
	<script src="http://static.hongdayun.com/public/simplecartjs/3.0.5/simpleCart.min.js"></script>
	
	<script>
		simpleCart.currency({
			code: "RMB" ,
			name: "Chinese Yuan" ,
			symbol: "￥" ,
			delimiter: "" , 
			decimal: "." , 
			after: false ,
			accuracy: 2
		});
		simpleCart({
			cartColumns: [
				{ view:"image",attr: "img" , label: "" } ,
				{ attr: "name" , label: " " } ,
				{ attr: "price" , label: " ", view: 'currency' } ,
				{ view: "decrement" , label: false , text: "-" } ,
				{  view: "input" ,attr: "quantity" , label: " " } ,
				{ view: "increment" , label: false , text: "+" } ,
				{ attr: "total" , label: " ", view: 'currency' } ,
				//{ view: "remove" , text: "取消" , label: false }
			]
		});
		
		
	</script>
	
  </head>
  <body>
   <header id="header">
		<div class="row shopping">
			<div class="col-xs-2 col-sm-2">
				<a href="__APP__/Home/Mall/Index/Addon/MallTemplateHome.html"><img src="__PUBLIC__/addon/malltemplatehome/images/icon58.jpg" width="100%"></a>
			</div>
			<div class="col-xs-8 col-sm-8">
				{$goods.name}
			</div>
			<div class="col-xs-2 col-sm-2">
			</div>
		</div>
	</header>
         <span class="img_value" style="padding:0px;">{$goods.value}</span>
      
 

	
	<a href="__APP__/Home/Mall/MyInfo/Addon/MallTemplateHome.html"><img src="__PUBLIC__/addon/malltemplatehome/images/icon55.png" class="person"></a>
	<a href="__APP__/Home/Mall/Cart/Addon/MallTemplateHome.html"><img src="__PUBLIC__/addon/malltemplatehome/images/icon69.png" class="shop">
	<span class="sp simpleCart_quantity">0</span></a>
	<!--footer-->
	<footer id="footer">
		<div class="row">
		    <div class="col-xs-3 col-sm-3 footer-center ">
		        <span class='footer-price'>￥20.00</span>
		    </div>
			<div class="col-xs-4 col-sm-4 footer-right-left">
				<a onclick="cart('{$goods.name}添加购物车成功');" style="width:100%;" href="javascript:;"><span class='btn' style="width:100%;">立即购买</span></a>
			
			</div>
			<div class="col-xs-5 col-sm-5 footer-right-right">
				<a href="javascript:;" onclick="cartOne('{$goods.name}添加购物车成功');"><span class='btn'>加入购物车</span></a>
			</div>
		</div>
	</footer>
	
		<script>
			function cart(msg){
			
			
				simpleCart.add({name:'{$goods.name}', price: {$goods.money},goods_id:'{$goods.id}',img:'{$goods.img}',quantity: 1});
								
				layer.msg(msg);
				
				window.location.href="__APP__/Home/Mall/Cart/Addon/MallTemplateHome.html"; 
			}
			
			function cartOne(msg){
			
			
				simpleCart.add({name:'{$goods.name}', price: {$goods.money},goods_id:'{$goods.id}',img:'{$goods.img}',quantity: 1});
								
				layer.msg(msg);
				//window.location.href="/Mall/Goods/Cart.html"; 
			}
		
		</script>
		
		 <script src="http://static.hongdayun.com/public/layer/2.2/layer.js"></script>
	<script src="http://static.hongdayun.com/public/layDate/1.1/laydate.js"></script>
	
	<script>
					
				//发送当前页面信息
				function notice(msg){  
					layer.msg(msg);
				}	
						
						
		</script>
	</script>
  </body>
</html>